weight= float(input("请输入你的体重(千克)："))
height= float(input("请输入你的身高(米)："))
country = (input("请输入你的国家"))
bmi = weight/ pow(height , 2)
print("BMI值为:{:.2f}".format(bmi))
if country in{'中国','zg','China'}:
    if bmi<18.5:
        zb="偏瘦"
    elif 18.5<=bmi<24:
        zb="正常"
    elif 24<=bmi<28:
        zb="偏胖"
    elif 28<=bmi<30:
        zb="肥胖"
    elif 30<=bmi<40:
        zb="重度肥胖"
    else:
        zb="极重度肥胖"
    print("BMI(国内)指标为:{}".format(zb))
else:
    if bmi<18.5:
        zb = "偏瘦"
    elif 18.5<=bmi<25:
        zb="正常"
    elif 25<=bmi<30:
        zb="偏胖"
    elif 30<=bmi<35:
        zb="肥胖"
    elif 35<=bmi<40:
        zb="重度肥胖"
    else:
        zb="极重度肥胖"
print("BMI(WHO)指标为:{}".format(zb))




